package com.ha.service.impl;

import com.ha.entity.News;
import com.ha.mapper.NewsMapper;
import com.ha.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: NewsServiceImpl
 * Package: com.ha.service.impl
 * Description:
 *
 * @Author 那啥啥
 * @Create 2024/5/3  22:44
 * @Version 1.0
 */
@Service
public class NewsServiceImpl implements NewsService {

    @Autowired
    private NewsMapper newsMapper;
    @Override
    public List<News> getNews() {


        return newsMapper.getNews();
    }
}
